package com.example.androidtest.androidviewGroup;


import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;

import androidx.recyclerview.widget.ListAdapter;

public class PhotoViews extends ViewGroup {
    /* private int childVerticalSpace = 0;
     private int getChildHorizontalcalSpace = 0;
     private int columnnuM = 3;
     private int childWidth = 0;
     private int childHeight = 0;*/
    private int mRadius;
    private static final String TAG = "PtotoViews";
    private ListAdapter mAdapter;
    public void setAdapter(ListAdapter adapter){
        mAdapter=adapter;
    }

    public PhotoViews(Context context) {
       this(context,null);
    }

    public PhotoViews(Context context, AttributeSet attrs) {
        this(context, attrs,0);
        /* TypedArray attributes=context.obtainStyledAttributes(attrs, R.styleable.PhotoViews)*/
    }

    public PhotoViews(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(attrs);
        setBackgroundColor(0x55D3E8FD);
    }

    private void init(AttributeSet attrs) {

    }
private void formFlower(){

}
    public PhotoViews(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        measureChildren(widthMeasureSpec, heightMeasureSpec);
    }

    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {

    }
}
